<template>
  <div class="register">
    <!-- 上方大图 -->
    <div class="loginimg">
      <img src="../assets/img/login.webp" alt="" />
    </div>
    <!-- 手机登录注册 -->
    <div class="phonelogin">
      <p @click="handleClick">手机登陆注册</p>
    </div>
    <!-- 快捷登录 -->
    <div class="fastlogin">
      <p>
        <img
          src="../assets/img/weixin.webp"
          alt=""
          @click="handleClickwx"
        /><span>微信</span>
      </p>
      <p>
        <img src="../assets/img/qq.webp" alt="" @click="handleClickqq" /><span
          >QQ</span
        >
      </p>
      <p>
        <img
          src="../assets/img/weibo.webp"
          alt=""
          @click="handleClickwb"
        /><span>微博</span>
      </p>
    </div>
    <div class="agreement">
      <p>登录注册代表同意<a>注册协议|隐私协议</a></p>
    </div>
  </div>
</template>

<script>
import router from "../router/index.js";
export default {
  setup() {
    // 路由跳转
    const handleClickwx = () => {
      router.push("/wx");
    };
    const handleClickqq = () => {
      router.push("/qq");
    };
    const handleClickwb = () => {
      router.push("/wb");
    };
    const handleClick = () => {
      router.push("/loginregister");
    };
    handleClick;
    return {
      handleClickwx,
      handleClickqq,
      handleClickwb,
      handleClick,
    };
  },
};
</script>
<style lang="less" scoped>
.register {
  position: relative;
  /* 大图样式 */
  .loginimg {
    width: 375px;
    height: 521px;
    position: absolute;
    top: 0;
    left: 0;
    img {
      width: 375px;
      height: 521px;
    }
  }
  /* 手机登录注册样式 */
  .phonelogin {
    width: 375px;
    height: 50px;
    position: absolute;
    top: 535px;
    left: 0;
    p {
      width: 300px;
      height: 50px;
      font-size: 16px;
      text-align: center;
      line-height: 50px;
      margin: auto;
      background: #f8b551;
    }
  }
  /* 快捷登陆样式 */
  .fastlogin {
    width: 300px;
    height: 50px;
    position: absolute;
    top: 585px;
    margin: 0px 37px;
    p {
      height: 50px;
      font-size: 14px;
      width: 100px;
      text-align: center;
      margin: 0;
      line-height: 50px;
      position: relative;
      float: left;
      img {
        display: block;
        width: 23px;
        height: 21px;
        position: absolute;
        top: 14px;
        left: 25px;
      }
      span {
        line-height: 40px;
        position: absolute;
        top: 6px;
      }
    }
  }
  /* 同意协议样式 */
  .agreement {
    width: 100%;
    height: 24px;
    position: absolute;
    top: 631px;
    p {
      width: 206px;
      height: 24px;
      font-size: 12px;
      line-height: 24px;
      margin: auto;
      a {
        color: blue;
      }
    }
  }
}
</style>
